package com.tlgen.orm.domain;

import com.tlgen.orm.annotation.FieldName;
import com.tlgen.orm.annotation.MappingClass;
import com.tlgen.orm.annotation.TableName;

@TableName(name = "sys_user_role")
public class SysUserRole {

    @MappingClass(SysUser.class)
    @FieldName("user_id")
    private String userId;

    @MappingClass(SysRole.class)
    @FieldName("role_id")
    private String roleId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public SysUserRole(String userId, String roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public SysUserRole() {
    }

}
